<ion-view view-title="订单详情" class="sellerpayment">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
	</ion-nav-bar>
	
	<ion-content class="bg">
		<div class="buyerpaymentHeaderBar">
			{{order.status}}
		</div>
		
		<div class="list">
			<li class="item item-borderless item-text-wrap">
				<div class="row item-input padding-0">
					<div class="imgCol">
						<img src="./img/guilin/other/icon_address@3x.png" class="locationImg" />
					</div>
					<div class="col textCol">
						<p>收货人：{{order.consignee.name}}</p>
						<p>收货地址：{{order.consignee.addr}}</p>
					</div>
				</div>
			</li>
			<!--物流信息-->
			<li class="item item-text-wrap item-borderless" ng-if="order.ship_status==1">
				<div class="row item-input padding-0">
					<div class="imgCol">
						<img src="./img/guilin/other/icon_car@2x.png" class="locationImg" />
					</div>
					<div class="col textCol border">
						<p>物流公司：{{order.delivery.logi_name}}</p>
						<p>运单编号：{{order.delivery.logi_no}}</p>
					</div>
				</div>
			</li>		
			<li class="item item-text-wrap item-borderless" ng-if="order.memo">
				<div class="row item-input padding-0">
					<div class="imgCol">
						<img src="./img/guilin/other/icon_msg@3x.png" class="locationImg" />
					</div>
					<div class="col textCol border">
						<p>买家留言</p>
						<p>{{order.memo}}</p>
					</div>
				</div>
			</li>			
			<!--{{showinvoicexia?order.memberVatInfo.unit_name:order.tax_company}}-->
			<li class="invoice dellidot" ng-if="order.is_tax">
				<p class="info">发票信息</p>
				<p class="name">名称：{{order.tax_company}}</p>
				<img class="imgxia" src="./img/guilin/other/icon_xia@3x.png" on-tap="showInvoiceInfo()" ng-if="!invoiceflag&&showinvoicexia" />
				<img class="imgshang" src="./img/guilin/other/icon_xia@3x.png" on-tap="showInvoiceInfo()" ng-if="invoiceflag" />
				<p class="infotxt" ng-if="showinvoicexia" style="font-size: 14px;">税号：{{order.memberVatInfo.tax_no}}</p>					
				<div ng-if="invoiceflag">										
					<p class="infotxt ellipsis">注册地址：{{order.memberVatInfo.registered_address}}</p>
					<p class="infotxt">注册电话：{{order.memberVatInfo.registered_phone}}</p>
					<p class="infotxt">开户银行：{{order.memberVatInfo.bank_name}}</p>
					<p class="infotxt">银行账号：{{order.memberVatInfo.bank_account}}</p>
					<div class="clearfix"></div>
				</div>
			</li>
			<div class="clearfix"></div>	
			
			<li class="dellidot ordernumberfrom">
				<p>订单号：{{order.order_id}}</p>
				<p><img class="characterimg" src="./img/guilin/other/icon_buyer@2x.png" /><span class="charactername">{{order.member_name}}</span></p>
			</li>

			<div ng-repeat="goods in order.order_objects">
				<!--该订单有多少个商品-->
				<li class="dellidot shop" ng-class="{'item-borderless':$first}" on-tap="onshow_productdetail(goods.goods_id,goods.product_id,order.order_type,order.act_id)">
					<img class="commodityimg" src="{{goods.image?goods.image:noImg}}" />
					<p><span class="commoditytxt">{{goods.name}}</span></p>
					<p class="commodityprice">{{goods.price|currency:'￥'}}</p>
					<p class="commodityx1">x{{goods.count}}</p>
					<p class="commoditymodel">{{goods.spec_info}}</p>
					<p class="commodityinvoice">{{goods.invoice_name}}</p>
				</li>
				<div class="clearfix"></div>
				
				<!--该商品有多少个附件-->
				<li class="dellidot partsinfo" ng-repeat="adjunct in goods.adjunct" on-tap="onshow_productdetail(adjunct.goods_id,adjunct.product_id,order.order_type,order.act_id)">
					<img class="partsimg" src="{{adjunct.thumbnail_pic?adjunct.thumbnail_pic:noImg}}" />
					<p><span class="commoditytxt">{{adjunct.name}}</span></p>
					<span class="commodityprice">{{adjunct.price|currency:'￥'}}</span>
					<p class="commoditymodel">{{adjunct.spec_info}}</p>
					<span class="commodityx1">x{{adjunct.quantity}}</span>
				</li>
			</div>
			

			<div class="dellidot priceinfo" >
				<p class="priceinfotxt"><span class="priceinfosumtxt">商品总价</span><span class="priceinfosum">{{order.cost_item|currency:'￥'}}</span></p>
				<p class="priceinfotxt"><span class="freighttxt">运费</span><span class="freightcurrency">{{order.cost_shipping|currency:'￥'}}</span></p>					
				<!--用来循环优惠的-->
				<div ng-repeat="pmt in order.order_pmt">								
					<p class="priceinfotxt"><span class="freighttxt">{{pmt.pmt_memo}}</span><span class="freightcurrency">{{pmt.pmt_amount|currency:'￥'}}</span></p>
				</div>
				
				<p><span class="paymenttext">实付款(含运费)</span><span class="paymentzong">{{order.total_amount|currency:'￥'}}</span></p>
				<div class="clearfix"></div>
				<p>
					<span class="kind" ng-if="order.order_type_name!='普通'">{{order.order_type_name}}</span>
					<span class="integraltext">可获积分<span class="integral">{{order.score_g}}</span>点</span>
				</p>
			</div>
			<div class="clearfix"></div>
			
			<li class="dellidot seller">
				<a href="tel:{{order.member_phone}}"><img src="./img/guilin/other/phone.icon@3x.png" class="sellerimg" /><span class="sellertxt">联系买家</span></a>
			</li>

			<li class="dellidot mode">
				<p>支付方式：{{order.payment}}</p>
			</li>
			<li class="dellidot mode">
				<p>配送方式：{{order.shipping_name}}</p>
			</li>
		
			<li class="dellidot orderh">
				<p>订单编号：<span class="index2">{{order.order_id}}</span></p>
				<p ng-repeat="log in order.orderlogs.data">{{log.behavior_str}}</p>
			</li>
		</div>
	</ion-content>
	
	<div class="bar bar-footer" ng-if="order.buttons.length>0">
		<div class="btn" style="border-color:{{buttons.color}};color:{{buttons.color}};right: {{84*$index+10}}px;" ng-repeat="buttons in order.buttons" on-tap="switchEvent(buttons.id)">{{buttons.name}}</div>
	</div>
	
</ion-view>